home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / wtjmarch.zip / CONTROLS.ZIP / STATDLL.C < prev    next >
Text File  |  1992-02-14  |  1KB  |  44 lines

  1. /*
  2.  * STATDLL.C -- Custom control dynamic link library
  3.  */
  4.  
  5. #include <windows.h>
  6. #include "newstat.h"
  7. #include "statdll.h"
  8.  
  9. #pragma argsused
  10.  
  11. int FAR PASCAL LibMain( HANDLE hInstance,WORD wDataSegment,
  12.               WORD wHeapSize,LPSTR lpszCmdLine)
  13. {
  14.     WNDCLASS wndclass ;
  15.  
  16.     if (wHeapSize != 0)
  17.        UnlockData(0);
  18.  
  19.     /* The only requirement is to register the NewStat class           */
  20.  
  21.     wndclass.style       = CS_HREDRAW | CS_VREDRAW | CS_GLOBALCLASS;
  22.     wndclass.lpfnWndProc   = StaticWndFn;
  23.     wndclass.cbClsExtra    = 0;
  24.     wndclass.cbWndExtra    = ST_WINEXTRA;
  25.     wndclass.hInstance       = hInstance;
  26.     wndclass.hIcon       = NULL;
  27.     wndclass.hCursor       = LoadCursor (NULL,IDC_ARROW);
  28.     wndclass.hbrBackground = NULL;
  29.     wndclass.lpszMenuName  = NULL;
  30.     wndclass.lpszClassName = "NewStat";
  31.  
  32.     RegisterClass (&wndclass);
  33.  
  34.     return 1;    /* Indicate that the DLL was initialized successfully. */
  35. }
  36.  
  37. #pragma argsused
  38.  
  39. int FAR PASCAL WEP(int bSystemExit)
  40. {
  41.     return 1;
  42. }
  43. 
  44.